package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.IndsvrSsoApp;
import com.ruoyi.system.domain.IndsvrSsoAppAuth;

/**
 * 应用Mapper接口
 * 
 * @author indsvr
 * @date 2025-07-03
 */
public interface IndsvrSsoAppMapper 
{
    /**
     * 查询应用
     * 
     * @param id 应用主键
     * @return 应用
     */
    public IndsvrSsoApp selectIndsvrSsoAppById(Long id);

    /**
     * 查询应用列表
     * 
     * @param indsvrSsoApp 应用
     * @return 应用集合
     */
    public List<IndsvrSsoApp> selectIndsvrSsoAppList(IndsvrSsoApp indsvrSsoApp);

    /**
     * 新增应用
     * 
     * @param indsvrSsoApp 应用
     * @return 结果
     */
    public int insertIndsvrSsoApp(IndsvrSsoApp indsvrSsoApp);

    /**
     * 修改应用
     * 
     * @param indsvrSsoApp 应用
     * @return 结果
     */
    public int updateIndsvrSsoApp(IndsvrSsoApp indsvrSsoApp);

    /**
     * 删除应用
     * 
     * @param id 应用主键
     * @return 结果
     */
    public int deleteIndsvrSsoAppById(Long id);

    /**
     * 批量删除应用
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteIndsvrSsoAppByIds(Long[] ids);

    /**
     * 批量删除授权信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteIndsvrSsoAppAuthByAppIds(Long[] ids);
    
    /**
     * 批量新增授权信息
     * 
     * @param indsvrSsoAppAuthList 授权信息列表
     * @return 结果
     */
    public int batchIndsvrSsoAppAuth(List<IndsvrSsoAppAuth> indsvrSsoAppAuthList);
    

    /**
     * 通过应用主键删除授权信息信息
     * 
     * @param id 应用ID
     * @return 结果
     */
    public int deleteIndsvrSsoAppAuthByAppId(Long id);
}
